
from rest_framework.routers import DefaultRouter
from .import views
urlpatterns = [

]

# 127.0.0.1:8000/shopping/classifications
# 127.0.0.1:8000/shopping/commodity
router = DefaultRouter()
router.register('classifications', views.ClassificationViewSet)
router.register('commoditys', views.CommodityViewSet)
router.register('cart', views.ShoppingCartViewSet)
router.register('order', views.OrderViewSet)
router.register('payments', views.PaymentViewSet)

urlpatterns += router.urls